package com.bawei.mvc.View;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

/**
 * create by ertu
 * create on 2021/7/27
 * description
 */
public abstract class BmvcFragment extends Fragment implements inmvcFragment {
    View view;
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return view = inflater.inflate(bandmvcLayout(),container,false);

    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ininmvcView();
        ininmvcDate();
    }

    @Override
    public <T extends View> T findmvcbid(int id) {
        return view.findViewById(id);
    }
}
